import { pubRequire } from '@utils/public'
//活动名称下拉
export function getActivitiesNameList(callBack, errBack) {
  return pubRequire('get', `/activities/collections-likes/activities-names`,{},callBack,errBack)
}
//渠道配置列表
export function getChannelsList(params, callBack, errBack) {
  return pubRequire('get', '/activities/channels', params, callBack, errBack)
}
// 根据活动id查询渠道配置
export function getChannelslink(id, callBack, errBack) {
  return pubRequire('get', `/activities/channels/${id}`, {}, callBack, errBack)
}
// 新增渠道配置
export function addChannels(params, callBack, errBack) {
  return pubRequire('post', '/activities/channels', params, callBack, errBack)
}
// 删除渠道配置
export function delChannels(id, callBack, errBack) {
  return pubRequire('delete',`/activities/channels/${id}`,{},callBack,errBack)
}
